package query

import (
	"github.com/androidsr/sc-go/model"
	"github.com/androidsr/sc-go/sbuilder"
)

type BaseQueryDTO struct {
	Page       *model.PageInfo      `json:"page" column:"-"`
	Id         string               `json:"id" column:"id" keyword:"eq"`
	CreateTime sbuilder.BetweenInfo `json:"createTime" column:"create_time" keyword:"between"`
}

type SysUserInfoQueryDTO struct {
	BaseQueryDTO
	UserId   string `json:"userId" column:"user_id" keyword:"eq"`
	UserName string `json:"userName" column:"user_name" keyword:"like"`
	Email    string `json:"email" column:"email" keyword:"eq"`
	State    int    `json:"state" column:"state" keyword:"eq"`
	Phone    string `json:"phone" column:"phone" keyword:"eq"`
	PhotoUrl string `json:"photoUrl" column:"photo_url" keyword:"eq"`
	Sex      int    `json:"sex" column:"sex" keyword:"eq"`
	Age      int    `json:"age" column:"age" keyword:"eq"`
	UserType int    `json:"userType" column:"user_type" keyword:"eq"`
	TenantId string `json:"tenantId" column:"tenant_id" keyword:"eq"`
}
